import { FileService } from '@app/file';
import { Injectable } from '@nestjs/common';

@Injectable()
export class WebsiteService {
  constructor(
    private readonly file: FileService
  ) { }

  public WebsiteRoot = this.file.make("website")

  websiteBasicInfoDefault = `{
      "phone": "",
      "email": "",
      "wechat": "",
      "postalCode": "",
      "address": "",
      "qqGroupQRCode": "",
      "webmasterWechat": ""
  }`;

  getExamsPath() {
    return this.file.join(this.WebsiteRoot, "exams.html")
  }

  getIntroducePath() {
    return this.file.join(this.WebsiteRoot, "introduce.html")
  }

  getBasicInfoPath() {
    return this.file.join(this.WebsiteRoot, "basic_info.json")
  }
}
